<?php
session_start();
 if(isset($_SESSION['role']))
 {
 	if($_SESSION['role']==1)
	{
		require_once('../leftpanel_links/student_link.php');
	}
	else if($_SESSION['role']==2)
	{
		require_once('../leftpanel_links/staff_link.php');
	}
	else if($_SESSION['role']==8)
	{
		require_once('../leftpanel_links/admin_link.php');
	}
 }
 else
 {
 	require_once('../leftpanel_links/index_link.php');
 } 
 ?>